import Layout from '@/views/layout.vue'
import Article from '@/views/secondes/article.vue'
import Collect from '@/views/secondes/collect.vue'
import Like from '@/views/secondes/like.vue'
import User from '@/views/secondes/user.vue'

import Login from '@/views/login.vue'
import Consult from '@/views/consult.vue'
import Register from '@/views/register.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect:'/article',
    children: [
      {
        path: '/article',
        component: Article
      },
      {
        path: '/collect',
        component: Collect
      },
      {
        path: '/like',
        component: Like
      },
      {
        path: '/user',
        component: User
      }
    ]
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/consult',
    component: Consult
  },
  {
    path: '/register',
    component: Register
  }
]

export default routes
